﻿var xProductType = {
    //电阻丝
    IFCDISTRIBUTIONELEMENT: '44#83#150#203#229',
    //流量元件
    IFCDISTRIBUTIONFLOWELEMENT: '45',
    //配电室单元
    IFCDISTRIBUTIONCHAMBERELEMENT: '180',
    //转换装置
    IFCENERGYCONVERSIONDEVICE: '175',
    //天空
    IFCAIRTOAIRHEATRECOVERY: '1097#141#216#255#204',
    //烧水壶;热水器
    IFCBOILER: '1105#224#224#224#204',
    //灯光
    IFCBURNER: '1109#254#239#180#178',
    //冷水机组
    IFCCHILLER: '1119#216#224#227#229',
    //线圈
    IFCCOIL: '1124#77#78#73#229',
    //电容器
    IFCCONDENSER: '1132#253#212#88#229',
    //冷却梁
    IFCCOOLEDBEAM: '1141#178#202#202#204',
    //冷却塔
    IFCCOOLINGTOWER: '1142#178#202#202#204',
    //发动机，引擎
    IFCENGINE: '1164',
    //蒸发冷却器
    IFCEVAPORATIVECOOLER: '1166',
    //蒸发器，脱水器
    IFCEVAPORATOR: '1167',
    //换热器
    IFCHEATEXCHANGER: '1187',
    //增湿器
    IFCHUMIDIFIER: '1188',
    //塑料）管束
    IFCTUBEBUNDLE: '1305#246#245#253#204',
    //单个机组
    IFCUNITARYEQUIPMENT: '1310',
    //发电机
    IFCELECTRICGENERATOR: '1160#246#245#253#204',
    //电动机
    IFCELECTRICMOTOR: '1161',
    //电机联接
    IFCMOTORCONNECTION: '1216',
    //太阳能
    IFCSOLARDEVICE: '1270#216#175#174#204',
    //变压器
    IFCTRANSFORMER: '1303#229#231#226#204',
    //流量控制器
    IFCFLOWCONTROLLER: '121',
    //电力分配点
    IFCELECTRICDISTRIBUTIONPOINT: '242',
    //空气终端盒
    IFCAIRTERMINALBOX: '1096',
    //减震器
    IFCDAMPER: '1148',
    //流量计
    IFCFLOWMETER: '1182',
    //真空管
    IFCVALVE: '1311#239#239#239#229',
    //配电
    IFCELECTRICDISTRIBUTIONBOARD: '1157',
    //电路控制
    IFCELECTRICTIMECONTROL: '1162',
    //防护设备
    IFCPROTECTIVEDEVICE: '1235',
    //开关
    IFCSWITCHINGDEVICE: '1290#98#201#200#229',
    //流设备
    IFCFLOWFITTING: '467',
    //管道
    IFCDUCTFITTING: '1153#182#229#239#204',
    //接管零件
    IFCPIPEFITTING: '1222#200#176#202#204',
    //电缆载波拟合
    IFCCABLECARRIERFITTING: '1111',
    //电缆配件
    IFCCABLEFITTING: '1113#67#113#121#153',
    //接线箱
    IFCJUNCTIONBOX: '1195',
    //流动装置
    IFCFLOWMOVINGDEVICE: '502',
    //压缩机
    IFCCOMPRESSOR: '1131',
    //风扇
    IFCFAN: '1177#207#107#207#204',
    //泵
    IFCPUMP: '1238#201#231#255#204',
    //流段
    IFCFLOWSEGMENT: '574',
    //管段
    IFCPIPESEGMENT: '1223#182#229#239#153',
    //有线运营商
    IFCCABLECARRIERSEGMENT: '1112',
    //电缆段
    IFCCABLESEGMENT: '1115#200#230#254#153',
    //流动装置
    IFCFLOWSTORAGEDEVICE: '371',
    //坦克
    IFCTANK: '1293',
    //电流存储设备
    IFCELECTRICFLOWSTORAGEDEVICE: '1159',
    //流动终端
    IFCFLOWTERMINAL: '46',
    //终端
    IFCFIRESUPPRESSIONTERMINAL: '1179',
    //卫浴终端
    IFCSANITARYTERMINAL: '1262#215#240#237#229',
    //栈码头
    IFCSTACKTERMINAL: '1277',
    //垃圾终端
    IFCWASTETERMINAL: '1315',
    //航站楼
    IFCAIRTERMINAL: '1095#195#200#204#204',
    //医疗器械
    IFCMEDICALDEVICE: '1212',
    //空间加热器
    IFCSPACEHEATER: '1272',
    //视听器材
    IFCAUDIOVISUALAPPLIANCE: '1099',
    //通信电器
    IFCCOMMUNICATIONSAPPLIANCE: '1127',
    //电器
    IFCELECTRICAPPLIANCE: '1156#188#204#229#204',
    //灯
    IFCLAMP: '1198#253#205#0#153',
    //灯具
    IFCLIGHTFIXTURE: '1199#227#228#222#204',
    //出口
    IFCOUTLET: '1219#162#206#49#204',
    //流处理装置
    IFCFLOWTREATMENTDEVICE: '425',
    //拦截器
    IFCINTERCEPTOR: '1193',
    //风道消音装置
    IFCDUCTSILENCER: '1155',
    //过滤器
    IFCFILTER: '1178',
    //分布控制元素
    IFCDISTRIBUTIONCONTROLELEMENT: '468',
    //保护装置
    IFCPROTECTIVEDEVICETRIPPINGUNIT: '1236',
    //螺线管
    IFCACTUATOR: '1091#153#166#198#229',
    //报警
    IFCALARM: '1098#198#22#35#204',
    //控制器
    IFCCONTROLLER: '1139',
    //流量仪表
    IFCFLOWINSTRUMENT: '1181',
    //传感器
    IFCSENSOR: '1264',
    //单位内控制元素
    IFCUNITARYCONTROLELEMENT: '1308',
    //离散的附件
    IFCDISCRETEACCESSORY: '423',
    //紧固件
    IFCFASTENER: '535#227#228#222#204',
    //机械紧固件
    IFCMECHANICALFASTENER: '536',
    //钢筋
    IFCREINFORCINGBAR: '571#227#228#222#204',
    //钢筋网
    IFCREINFORCINGMESH: '531#192#219#188#229',
    //肌腱
    IFCTENDON: '261',
    //筋的锚固
    IFCTENDONANCHOR: '675',
    //建筑元素的一部分
    IFCBUILDINGELEMENTPART: '220',
    //机械紧固件
    IFCMECHANICALFASTENER: '536',
    //振动隔离器
    IFCVIBRATIONISOLATOR: '1312',
    //倒角的边缘
    IFCCHAMFEREDGEFEATURE: '765#180#180#180#204',
    //圆形的边缘
    IFCROUNDEDEDGEFEATURE: '766#180#180#180#204',
    //开元素
    IFCOPENINGELEMENT: '498',
    //开口箱
    IFCOPENINGSTANDARDCASE: '1217',
    //排泄功能
    IFCVOIDINGFEATURE: '1313',
    //投影元素
    IFCPROJECTIONELEMENT: '384#184#184#184#127',
    //曲面特征
    IFCSURFACEFEATURE: '1287',
    //建筑元素的一部分
    IFCBUILDINGELEMENTPART: '220',
    //钢筋
    IFCREINFORCINGBAR: '571#227#228#222#204',
    //钢筋网
    IFCREINFORCINGMESH: '531#192#219#188#204',
    //肌腱
    IFCTENDON: '261',
    //筋的锚固
    IFCTENDONANCHOR: '675',
    //基础
    IFCFOOTING: '120',
    //桩
    IFCPILE: '572#88#87#92#204',
    //梁
    IFCBEAM: '171#126#165#144#204',
    //梁标准案例
    IFCBEAMSTANDARDCASE: '1104#126#165#144#204',
    //柱
    IFCCOLUMN: '383#175#206#214#204',
    //柱标准案例
    IFCCOLUMNSTANDARDCASE: '1126#175#206#214#204',
    //幕墙
    IFCCURTAINWALL: '456#212#187#172#204',
    //门
    IFCDOOR: '213#254#172#0#178',
    //门标准案例
    IFCDOORSTANDARDCASE: '1151#254#172#0#178',
    //构件
    IFCMEMBER: '310',
    //构件标准案例
    IFCMEMBERSTANDARDCASE: '1214',
    //板
    IFCPLATE: '351#226#216#192#204',
    //板标准案例
    IFCPLATESTANDARDCASE: '1224#226#216#192#204',
    //栏杆
    IFCRAILING: '350#84#84#84#153',
    //斜坡
    IFCRAMP: '414#254#205#201#153',
    //斜坡段
    IFCRAMPFLIGHT: '348',
    //屋顶
    IFCROOF: '347#224#198#41#153',
    //楼板
    IFCSLAB: '99#255#255#255#153',
    //楼板的应用案例
    IFCSLABELEMENTEDCASE: '1268#226#216#192#153',
    //楼板的标准案例
    IFCSLABSTANDARDCASE: '1269#226#216#192#153',
    //楼梯
    IFCSTAIR: '346#238#238#238#153',
    //楼梯段
    IFCSTAIRFLIGHT: '25#238#238#238#153',
    //墙
    IFCWALL: '452#245#193#146#153',
    //墙的标准案例
    IFCWALLSTANDARDCASE: '453#245#193#146#153',
    //墙的应用案例
    IFCWALLELEMENTEDCASE: '1314#245#193#146#153',
    //窗
    IFCWINDOW: '667#198#229#223#102',
    //窗的标准案例
    IFCWINDOWSTANDARDCASE: '1316#198#229#223#102',
    //建筑元素的代理
    IFCBUILDINGELEMENTPROXY: '560#119#186#229#153',
    //遮盖物
    IFCCOVERING: '382#219#207#155#204',
    //烟囱
    IFCCHIMNEY: '1120#168#130#96#204',
    //遮阳装置
    IFCSHADINGDEVICE: '1265#118#203#182#204',
    //元件装配
    IFCELEMENTASSEMBLY: '18',
    //装饰元素
    IFCFURNISHINGELEMENT: '253#150#74#110#204',
    //家具
    IFCFURNITURE: '1184#184#156#115#204',
    //系统家具元素
    IFCSYSTEMFURNITUREELEMENT: '1291#184#156#115#204',
    //交通元素
    IFCTRANSPORTELEMENT: '416',
    //虚拟元件
    IFCVIRTUALELEMENT: '168',
    //电气元件
    IFCELECTRICALELEMENT: '23',
    //设备元件
    IFCEQUIPMENTELEMENT: '212',
    //民间元素
    IFCCIVILELEMENT: '1122',
    //地理要素
    IFCGEOGRAPHICELEMENT: '1185',
    //配置端口
    IFCDISTRIBUTIONPORT: '178',
    //代理
    IFCPROXY: '447',
    //非线性作用结构
    IFCSTRUCTURALLINEARACTION: '463',
    //非线性作用结构变化
    IFCSTRUCTURALLINEARACTIONVARYING: '464',
    //平面建筑结构作用
    IFCSTRUCTURALPLANARACTION: '39',
    //平面建筑结构作用变化
    IFCSTRUCTURALPLANARACTIONVARYING: '357',
    //结构点行动
    IFCSTRUCTURALPOINTACTION: '356',
    //结构曲线的作用
    IFCSTRUCTURALCURVEACTION: '1279',
    //结构非线性行为
    IFCSTRUCTURALLINEARACTION: '463',
    //结构面作用
    IFCSTRUCTURALSURFACEACTION: '1284',
    //平面结构
    IFCSTRUCTURALPLANARACTION: '39',
    //结构点
    IFCSTRUCTURALPOINTREACTION: '354',
    //结构
    IFCSTRUCTURALCURVEREACTION: '1280',
    //结构面
    IFCSTRUCTURALSURFACEREACTION: '1285',
    //连接结构
    IFCSTRUCTURALCURVECONNECTION: '534',
    //结构的点连接
    IFCSTRUCTURALPOINTCONNECTION: '533',
    //结构面连接
    IFCSTRUCTURALSURFACECONNECTION: '264',
    //成员结构曲线
    IFCSTRUCTURALCURVEMEMBER: '224',
    //结构曲线变化
    IFCSTRUCTURALCURVEMEMBERVARYING: '227',
    //结构表面构件
    IFCSTRUCTURALSURFACEMEMBER: '420',
    //结构表面构件变化
    IFCSTRUCTURALSURFACEMEMBERVARYING: '421',
    //注释
    IFCANNOTATION: '634',
    //建筑
    IFCBUILDING: '169#224#224#224#229',
    //建筑层数
    IFCBUILDINGSTOREY: '459',
    //场地
    IFCSITE: '349#187#195#84#204',
    //空间
    IFCSPACE: '454#224#224#224#204',
    //网格
    IFCGRID: '564#250#226#74#229',
    //房屋
    IFCBUILDING: '169#220#177#65#229',
    //建筑层数
    IFCBUILDINGSTOREY: '459',
    //场地
    IFCSITE: '349#187#195#84#204',
    //空间
    IFCSPACE: '454#224#224#224#204',
    //外部空间元素
    IFCEXTERNALSPATIALELEMENT: 1174,
    //空间区
    IFCSPATIALZONE: 1275
};
function setsimplestyle() {
    setcolor(xProductType.IFCDISTRIBUTIONELEMENT);
    setcolor(xProductType.IFCAIRTOAIRHEATRECOVERY);
    setcolor(xProductType.IFCAIRTOAIRHEATRECOVERY);
    setcolor(xProductType.IFCBOILER);
    setcolor(xProductType.IFCCHILLER);
    setcolor(xProductType.IFCCOIL);
    setcolor(xProductType.IFCCONDENSER);
    setcolor(xProductType.IFCCOOLEDBEAM);
    setcolor(xProductType.IFCCOOLINGTOWER);
    setcolor(xProductType.IFCTUBEBUNDLE);
    setcolor(xProductType.IFCELECTRICGENERATOR);
    setcolor(xProductType.IFCSOLARDEVICE);
    setcolor(xProductType.IFCTRANSFORMER);
    setcolor(xProductType.IFCVALVE);
    setcolor(xProductType.IFCSWITCHINGDEVICE);
    setcolor(xProductType.IFCDUCTFITTING);
    setcolor(xProductType.IFCPIPEFITTING);
    setcolor(xProductType.IFCCABLEFITTING);
    setcolor(xProductType.IFCFAN);
    setcolor(xProductType.IFCPUMP);
    setcolor(xProductType.IFCPIPESEGMENT);
    setcolor(xProductType.IFCCABLESEGMENT);
    setcolor(xProductType.IFCSANITARYTERMINAL);
    setcolor(xProductType.IFCAIRTERMINAL);
    setcolor(xProductType.IFCELECTRICAPPLIANCE);
    setcolor(xProductType.IFCLAMP);
    setcolor(xProductType.IFCLIGHTFIXTURE);
    setcolor(xProductType.IFCOUTLET);
    setcolor(xProductType.IFCACTUATOR);
    setcolor(xProductType.IFCALARM);
    setcolor(xProductType.IFCFASTENER);
    setcolor(xProductType.IFCREINFORCINGBAR);
    setcolor(xProductType.IFCREINFORCINGMESH);
    setcolor(xProductType.IFCCHAMFEREDGEFEATURE);
    setcolor(xProductType.IFCROUNDEDEDGEFEATURE);
    setcolor(xProductType.IFCPROJECTIONELEMENT);
    setcolor(xProductType.IFCREINFORCINGBAR);
    setcolor(xProductType.IFCREINFORCINGMESH);
    setcolor(xProductType.IFCPILE);
    setcolor(xProductType.IFCBEAM);
    setcolor(xProductType.IFCCOLUMN);
    setcolor(xProductType.IFCCURTAINWALL);
    setcolor(xProductType.IFCDOOR);
    setcolor(xProductType.IFCPLATE);
    setcolor(xProductType.IFCRAILING);
    setcolor(xProductType.IFCRAMP);
    setcolor(xProductType.IFCROOF);
    setcolor(xProductType.IFCSLAB);
    setcolor(xProductType.IFCSTAIR);
    setcolor(xProductType.IFCSTAIRFLIGHT);
    setcolor(xProductType.IFCWALL);
    setcolor(xProductType.IFCWINDOW);
    setcolor(xProductType.IFCCOVERING);
    setcolor(xProductType.IFCCHIMNEY);
    setcolor(xProductType.IFCSHADINGDEVICE);
    setcolor(xProductType.IFCFURNISHINGELEMENT);
    setcolor(xProductType.IFCFURNITURE);
    setcolor(xProductType.IFCBUILDING);
    setcolor(xProductType.IFCSITE);
    setcolor(xProductType.IFCSPACE);
    setcolor(xProductType.IFCGRID);
    setcolor(xProductType.IFCBUILDING);
    setcolor(xProductType.IFCSITE);
    setcolor(xProductType.IFCSPACE);
    setcolor(xProductType.IFCWALLSTANDARDCASE);
    setcolor(xProductType.IFCWALLELEMENTEDCASE);
    setcolor(xProductType.IFCBUILDINGELEMENTPROXY);
    
}
function setcolor(mdlname) {
    var arrstr = mdlname.split("#");
    if (arrstr.length > 1) {
        var type = arrstr[0];
        var redstr = arrstr[1];
        var greenstr = arrstr[2];
        var bluestr = arrstr[3];
        var alphastr = arrstr[4];

        setTypeColor(type, redstr, greenstr, bluestr, alphastr);
    }
}
